package com.moerae.service.Impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.moerae.mapper.TbskuPoMapper;
import com.moerae.pojo.TbskuPo;
import com.moerae.service.TbskuService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TbskuServiceImpl extends ServiceImpl<TbskuPoMapper, TbskuPo>  implements TbskuService {

    //分页查询
    public List<TbskuPo> findPage(int currentPage, int PageSize) {
        page(new Page<>());
        Page<TbskuPo> page = page(new Page<>(currentPage, PageSize));
        return page.getRecords();
    }
}